/**
 * 
 */
package cc.angis.xiugallery.util;

import org.apache.http.HttpHost;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.impl.client.DefaultHttpClient;

/**
 * @author piers.xie
 *
 */
public class WapHttpClient extends DefaultHttpClient {
	private static WapHttpClient wapHttpClientInstance;
	public static HttpHost proxy = new HttpHost( "10.0.0.172", 80, "http");  
	
	public synchronized static WapHttpClient getInstance(){
		if(wapHttpClientInstance == null){
			wapHttpClientInstance = new WapHttpClient();
			wapHttpClientInstance.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
		}
		return 	wapHttpClientInstance;
	}
}
